import Vue from 'vue'
import App from './App'
import uView from "uview-ui";
import GoEasy from "js_sdk/goeasy-js/goeasy-1.2.1.js"

Vue.use(uView);
Vue.config.productionTip = false;

Vue.prototype.$goEasy = new GoEasy({
host: "hangzhou.goeasy.io",
appkey: "BC-80b1010cc6ef43fa9fa4a96279002906", //替换为您的应用appkey
    onConnected: function() {
      console.log('连接成功！')
    },
    onDisconnected: function() {
      console.log('连接断开！')
    },
    onConnectFailed: function(error) {
      console.log('连接失败或错误！')
    }
});

App.mpType = 'app';

const app = new Vue({
    ...App
})
app.$mount()
